OUTPUT = ../../target/debug
EXECUTABLE = client

analyze-code:
	cargo clippy

format:
	cargo fmt

build:
	cargo build

test-lib: analyze-code format
	cargo test -- --nocapture

run-c: build
	gcc --std=c11 c/client.c -o c/${EXECUTABLE} -L ${OUTPUT} -lffi_passing_and_returning_integers
	LD_LIBRARY_PATH=${OUTPUT} c/${EXECUTABLE}

clean:
	cargo clean
	rm -f c/${EXECUTABLE}
